package cn.buk.tms.eotms.service;

import cn.buk.tms.common.dto.base.BaseDto;
import cn.buk.tms.eotms.dto.PaymentOrderDto;
import cn.buk.tms.eotms.entity.PaymentOrder;
import cn.buk.tms.exception.BaseException;

/**
 * 支付订单的相关方法
 */
public interface PaymentService {

    PaymentOrder updatePaymentOrderDone(String outTradeNo, double totalAmount, String tradeNo, String buyerId) throws BaseException;

    /**
     * 通过支付订单号查找支付订单
     * @param userId 用户id
     * @param tradeNo 支付订单号
     * @return
     */
    BaseDto getPaymentOrderByTradeNo(int userId, String tradeNo);
}
